package com.bdqn.rooms.beans;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author jack
 * @since 2019-05-21
 */
public class Staff extends Model<Staff> {

    private static final long serialVersionUID = 1L;

    /**
     * 员工ID
     */
    @TableId(value = "staffid", type = IdType.AUTO)
    private Integer staffid;
    /**
     * 员工姓名
     */
    private String sname;
    /**
     * 用户名
     */
    private String susername;
    /**
     * 密码
     */
    private String spassword;
    /**
     * 电话
     */
    private Integer phone;
    /**
     * 头像路径
     */
    private String imgtit;


    public Integer getStaffid() {
        return staffid;
    }

    public void setStaffid(Integer staffid) {
        this.staffid = staffid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSusername() {
        return susername;
    }

    public void setSusername(String susername) {
        this.susername = susername;
    }

    public String getSpassword() {
        return spassword;
    }

    public void setSpassword(String spassword) {
        this.spassword = spassword;
    }

    public Integer getPhone() {
        return phone;
    }

    public void setPhone(Integer phone) {
        this.phone = phone;
    }

    public String getImgtit() {
        return imgtit;
    }

    public void setImgtit(String imgtit) {
        this.imgtit = imgtit;
    }

    @Override
    protected Serializable pkVal() {
        return this.staffid;
    }

    @Override
    public String toString() {
        return "Staff{" +
        ", staffid=" + staffid +
        ", sname=" + sname +
        ", susername=" + susername +
        ", spassword=" + spassword +
        ", phone=" + phone +
        ", imgtit=" + imgtit +
        "}";
    }
}
